package com.itboye.jinpuyiyuan.activity.message;

import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.itboye.jinpuyiyuan.R;
import com.itboye.jinpuyiyuan.base.BaseActivity;

/**
 * Created by Administrator on 2018/6/22 0022.
 */

public class NotificationInfoActivity extends BaseActivity {
    //title
    private ImageView leftImg,rightImg;
    private TextView leftTv,tvTitle;
    private RelativeLayout rlLeft,toobar;

    private ImageView notifyImg;
    private TextView contentTv;
    String title;
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setContentView(R.layout.activity_notifycationinfo);
        leftTv.setVisibility(View.GONE);
        rightImg.setVisibility(View.GONE);
        title = getIntent().getStringExtra("title");
//        if (title.length()>8){
//           title= title.substring(0,9);
//        }
        tvTitle.setText(title);
        contentTv.setText(getIntent().getStringExtra("content"));
        contentTv.setMovementMethod(ScrollingMovementMethod.getInstance());// 设置可滚动
//        intent.putExtra("title",mDataList.get(position).getTitle());
//        intent.putExtra("content",mDataList.get(position).getContent());

    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()){

            case R.id.leftImg:

                finish();
                break;
        }
    }
}
